package xkp.lesson5;

/**
 * 如果不遵循javabean标准会有什么问题
 * 1、在SSM框架中我们会学习spring框架(重要),spring框架是bean管理器，
 * 如果类不是javabean标准，被spring管理时会出现一系列问题。
 * @author Administrator
 *
 */
public class Student {
	//所有的成员变量都用private修饰
	//成员变量首字母消息
	private String stuName;
	private int stuAge;
	private String stuSex;
	
	//必须有无参构造
	public Student() {
		
	}
	
	
	
	public Student(String stuName, int stuAge, String stuSex) {
		super();
		this.stuName = stuName;
		this.stuAge = stuAge;
		this.stuSex = stuSex;
	}



	//成员对应的有get/set方法
	//get/set方法名规则get/set变量名(首字母大写)
	public String getStuName() {
		return stuName;
	}
	public void setStuName(String stuName) {
		this.stuName = stuName;
	}
	public int getStuAge() {
		return stuAge;
	}
	public void setStuAge(int stuAge) {
		this.stuAge = stuAge;
	}
	public String getStuSex() {
		return stuSex;
	}
	public void setStuSex(String stuSex) {
		this.stuSex = stuSex;
	}
}
